package com.cg.design.depthdesign.abstractfactory.factories;

import com.cg.design.depthdesign.abstractfactory.buttons.Button;
import com.cg.design.depthdesign.abstractfactory.buttons.MacOSButton;
import com.cg.design.depthdesign.abstractfactory.checkbes.Checkbox;
import com.cg.design.depthdesign.abstractfactory.checkbes.MacOSCheckbox;

/**
 * MacOS具体工厂
 * <p>
 * 每个具体工厂都是基础工厂的延伸，负责创造单一品种的产品。
 *
 * @program: LeetCode->MacOSFactory
 * @author: cg
 * @create: 2022-04-07 09:34
 **/
public class MacOSFactory implements GUIFactory {

    @Override
    public Button createButton() {
        return new MacOSButton();
    }

    @Override
    public Checkbox createCheckbox() {
        return new MacOSCheckbox();
    }
}
